package com.xinhe.web.reposity;

import com.xinhe.web.entity.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface GoodsRepository  extends JpaRepository<Goods, Long> {
    @Modifying
    @Query(value = "update tb_goods set removed = 1 where f_seller_user_id = ?1", nativeQuery = true)
    void deleteBySellerUserId(Long userId);
}
